import {defineStore} from "pinia";
import {ref} from "vue";

export const useCollapseStore = defineStore('collapse', () => {
    let collapse = ref(false)

    function updateCollapse() {
        collapse.value = !collapse.value
    }

    function updateCollapseReal(value) {
        collapse.value = value
    }
    return { collapse, updateCollapse, updateCollapseReal }
})